<!--
 * @Desc: 按钮组件
 * @version: v1.00
 * @Author: harry
 * @Date: 2023-8-10 21:45:31
 * @LastEditors: harry
 * @LastEditTime: 2024-04-07 20:57:16
-->
<template>
  <div class="btn">
    <van-button @click="emit('cancel')">取消</van-button>
    <van-button @click="emit('submit')">{{ btnTitle }}</van-button>
  </div>
</template>

<script lang="ts" setup>
defineProps({
  btnTitle: String,
});
const emit = defineEmits(['submit', 'cancel'])
</script>

<style lang="less" scoped>
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-around;
  button {
    width: 148px;
    height: 40px;
    border-radius: 40px;
    /deep/ .van-button__text {
      font-size: 16px;
      line-height: 19px;
      letter-spacing: 1px;
    }
  }
  > button:first-child {
    border: 0.5px solid #ced3d9;
  }
  > button:nth-child(2) {
    background: #3e77fa;
    color: #fff;
  }
}
</style>
